﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    [Table("sys_users")]
    public class Users
    {

        [Key]
        public long UsersId { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string UsersName { get; set; }
        /// <summary>
        /// 真实姓名
        /// </summary>
        public string UsersTrueName { get; set; }
        /// <summary>
        /// 命名
        /// </summary>
        public string UsersPassword { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public char UsersSex { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string UsersHoneUmber { get; set; }
        /// <summary>
        /// 附件id
        /// </summary>
        public long AttachmentId { set; get; }
        
        public long OrgId { set; get; }
        
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateBy { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { set; get; }
        /// <summary>
        /// 更新人
        /// </summary>
        public string UpdateBy { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { set; get; }
    }

    public class UsersDTO
    {
        [Key]
        public long UsersId { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string UsersName { get; set; }
        /// <summary>
        /// 真实姓名
        /// </summary>
        public string UsersTrueName { get; set; } 
        /// <summary>
        /// 部门id
        /// </summary>
        public long OrgId { set; get; }
    }
}
